<template>

  <el-dialog :title="title" :visible.sync="dialogVisible" :show-close="false" :close-on-press-escape="false" :close-on-click-modal="false">
    <span>这是一段信息1</span>
    <span slot="footer" class="dialog-footer">
      <el-button @click="closedialog()">取 消</el-button>
      <el-button type="primary">确 定</el-button>
    </span>
  </el-dialog>

</template>
<script>
export default {
  name: "iv-dialog",
  props: {
    title: {
      type: String,
      default: ""
    },
    dialogVisible: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    closedialog() {
      // $parent 不能用这个，会有多层的关系
      // this.$parent._data.dialogVisible = false;
    }
  }
};
</script>